﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MealBooking.Core;

namespace ThisIsFirstTest.Controllers.DishController
{
    public class DishController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.HeaderTitle = "Dishes";
            return View();
        }
        #region Dish
        public ActionResult DishDetail(string id)
        {
            ViewBag.HeaderTitle = "Dish Detail";
            var dish = CoreService.DishService.DishDetail(id);
            return View(dish);
        }
        public ActionResult DishDetails()
        {
            var dishDetails = CoreService.DishService.AllDishes();
            ViewBag.HeaderTitle = "Dish Detail";
            return View(dishDetails);
        }
        #endregion

        #region DishCategory
        public ActionResult AllDishCategoriesPartial()
        {
            var allDishCats = CoreService.DishService.AllDishCategories();
            return PartialView(allDishCats);
        }
        #endregion
    }
}
